package com.atguigu.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.atguigu.service.HelloService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zbystart
 * @create 2021-06-16 15:25
 */
@RestController
@RequestMapping("/dubbodemo")
public class HelloController {

    @Reference
    public HelloService helloService;

    @RequestMapping("/hello")
    public String hello(String name) {
        return helloService.hello(name);
    }
}
